# -*- coding:utf-8 -*-
# main.py
from sympy.abc import lamda

import wordID
pycode = wordID.open_file()
# print(pycode)
output = wordID.match_word(pycode)
# type(output)
for i in output.keys():
    print(f"({output[i]}:{i}:{[key for key,value in wordID.word_type.items() if value == output[i]]})")